﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HCService.MsgHandler.SubHandler
{
	public class ClientDisconnetHandler : HandlerBase
	{
		public new string HandleTag = "Close_Connect";
		public ClientDisconnetHandler(PackHandlerCenter center){
			center.RegisterPackHandle(HandleTag, Handle);
		}
		public override void Handle(Client.IClient client, Pack pack)
		{
			if (pack.HandleTag == HandleTag)
			{
				client.DisConnect();
				Console.WriteLine("断开");
			}
		}
	}
}
